<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      ldns-1.7.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;17.&nbsp;Networking Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="glib-networking.html" title=
          "glib-networking-2.62.3">Prev</a>
          <p>
            glib-networking-2.62.3
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libevent.html" title=
          "libevent-2.1.11">Next</a>
          <p>
            libevent-2.1.11
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ldns" name="ldns"></a>ldns-1.7.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to ldns
        </h2>
        <p>
          <span class="application">ldns</span> is a fast DNS library with
          the goal to simplify DNS programming and to allow developers to
          easily create software conforming to current RFCs and Internet
          drafts. This packages also includes the <span class=
          "command"><strong>drill</strong></span> tool.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://www.nlnetlabs.nl/downloads/ldns/ldns-1.7.1.tar.gz">http://www.nlnetlabs.nl/downloads/ldns/ldns-1.7.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 166262a46995d9972aba417fd091acd5
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.2 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 28 MB (with docs)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU (with docs)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          ldns Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/make-ca.html" title=
          "make-ca-1.5">make-ca-1.5</a> and <a class="xref" href=
          "libpcap.html" title="libpcap-1.9.1">libpcap-1.9.1</a> (for example
          programs), <a class="xref" href="../general/python2.html" title=
          "Python-2.7.17">Python-2.7.17</a> and <a class="xref" href=
          "../general/swig.html" title="SWIG-4.0.1">SWIG-4.0.1</a> (for
          Python bindings), and <a class="xref" href=
          "../general/doxygen.html" title="Doxygen-1.8.17">Doxygen-1.8.17</a>
          (for html documentation)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/ldns">http://wiki.linuxfromscratch.org/blfs/wiki/ldns</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of ldns
        </h2>
        <p>
          Install <span class="application">ldns</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr           \
            --sysconfdir=/etc       \
            --disable-static        \
            --with-drill            &amp;&amp;
make</kbd>
</pre>
        <p>
          If you have <a class="xref" href="../general/doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a> installed and want to build
          html documentation, run the following command:
        </p>
        <pre class="userinput">
<kbd class="command">make doc</kbd>
</pre>
        <p>
          This package does not come with a working test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you built html documentation, install it by running the
          following commands as the <code class="systemitem">root</code>
          user:
        </p>
        <pre class="root">
<kbd class="command">install -v -m755 -d /usr/share/doc/ldns-1.7.1 &amp;&amp;
install -v -m644 doc/html/* /usr/share/doc/ldns-1.7.1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <em class="parameter"><code>--with-drill</code></em>: This option
          enables building of the <span class=
          "command"><strong>drill</strong></span> tool (used for obtaining
          debug information from DNS(SEC))
        </p>
        <p>
          <code class="option">--disable-dane-ta-usage</code>: This option
          disables DANE-TA (DNS-Based Authentication of Named Entities)
          support. It is only needed if OpenSSL-1.1.0 or later is not
          installed.
        </p>
        <p>
          <code class="option">--with-examples</code>: This option enables
          building of the example programs.
        </p>
        <p>
          <code class="option">--with-pyldns</code>: This option enables
          building of the Python bindings.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">drill and ldns-config</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libldns.so and
              /usr/lib/python2.7/site-packages/_ldns.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/ldns and
              /usr/share/doc/ldns-1.7.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="drill" name="drill"></a><span class=
                    "term"><span class=
                    "command"><strong>drill</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a tool like <span class=
                    "command"><strong>dig</strong></span> from <a class=
                    "xref" href="bind-utils.html" title=
                    "BIND Utilities-9.14.10">BIND Utilities-9.14.10</a>
                    designed to get all sorts of information out of the DNS.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ldns-config" name="ldns-config"></a><span class=
                    "term"><span class=
                    "command"><strong>ldns-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    shows compiler and linker flags for ldns usage.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libldns" name="libldns"></a><span class=
                    "term"><code class="filename">libldns.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides the <span class="application">ldns</span> API
                    functions to programs.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 12:12:55 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="glib-networking.html" title=
          "glib-networking-2.62.3">Prev</a>
          <p>
            glib-networking-2.62.3
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libevent.html" title=
          "libevent-2.1.11">Next</a>
          <p>
            libevent-2.1.11
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
